/**
 */
package com.dingpeikeji.quickdeer.core.modules.schedef.entity;

import org.hibernate.validator.constraints.Length;

import com.dingpeikeji.quickdeer.core.common.persistence.DataEntity;
import com.dingpeikeji.quickdeer.core.modules.sys.entity.Office;

/**
 * 班次定义Entity
 * @author Zhaoy
 * @version 2016-05-27
 */
public class TSchedefVehi extends DataEntity<TSchedefVehi> {
	
	private static final long serialVersionUID = 1L;
	private String defvehiid;		// defvehiid
	//private TSchedef scheid;		// 班次定义ID 父类
	private String scheid;
	private Office office;		// 客运公司ID
	private String busid;
	private String cargotypeid;
	private String licno;		// 车牌号
	private String brandname;		// 车辆品牌
	private String vehiclename;		// 车型名称
	private String seats;		// 座位数
	private String maindriver;
	private String vicedriver;
	
	public TSchedefVehi() {
		super();
	}

	public TSchedefVehi(String id){
		super(id);
	}

	/*public TSchedefVehi(TSchedef scheid){
		this.scheid = scheid;
	}*/

	public String getDefvehiid() {
		return defvehiid;
	}

	public void setDefvehiid(String defvehiid) {
		this.defvehiid = defvehiid;
	}
	
	/*public TSchedef getScheid() {
		return scheid;
	}

	public void setScheid(TSchedef scheid) {
		this.scheid = scheid;
	}*/
	
	public Office getOffice() {
		return office;
	}

	public void setOffice(Office office) {
		this.office = office;
	}
	
	@Length(min=0, max=20, message="车牌号长度必须介于 0 和 20 之间")
	public String getLicno() {
		return licno;
	}

	public void setLicno(String licno) {
		this.licno = licno;
	}
	
	@Length(min=1, max=50, message="车辆品牌长度必须介于 1 和 50 之间")
	public String getBrandname() {
		return brandname;
	}

	public void setBrandname(String brandname) {
		this.brandname = brandname;
	}
	
	@Length(min=1, max=200, message="车型名称长度必须介于 1 和 200 之间")
	public String getVehiclename() {
		return vehiclename;
	}

	public void setVehiclename(String vehiclename) {
		this.vehiclename = vehiclename;
	}
	
	public String getSeats() {
		return seats;
	}

	public void setSeats(String seats) {
		this.seats = seats;
	}

	public String getScheid() {
		return scheid;
	}

	public void setScheid(String scheid) {
		this.scheid = scheid;
	}

	public String getMaindriver() {
		return maindriver;
	}

	public void setMaindriver(String maindriver) {
		this.maindriver = maindriver;
	}

	public String getVicedriver() {
		return vicedriver;
	}

	public void setVicedriver(String vicedriver) {
		this.vicedriver = vicedriver;
	}

	public String getBusid() {
		return busid;
	}

	public void setBusid(String busid) {
		this.busid = busid;
	}

	public String getCargotypeid() {
		return cargotypeid;
	}

	public void setCargotypeid(String cargotypeid) {
		this.cargotypeid = cargotypeid;
	}

}
